package vip.xiaonuo.pm.modular.enterprise.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import vip.xiaonuo.common.param.DeleteByIdParam;
import vip.xiaonuo.pm.modular.enterprise.entity.PmEnterpriseEntity;
import vip.xiaonuo.pm.modular.enterprise.param.EnterpriseAddParam;
import vip.xiaonuo.pm.modular.enterprise.param.EnterpriseEditParam;
import vip.xiaonuo.pm.modular.enterprise.param.EnterprisePageParam;

import java.util.List;

/**
 * <p>
 * 客户 服务类
 * </p>
 *
 * @author xhs
 * @since 2025-06-04
 */
public interface PmEnterpriseService extends IService<PmEnterpriseEntity> {

    /**
     * 根据ID查询数据
     *
     * @param id 入参
     * @return PmEnterpriseEntity
     */
    PmEnterpriseEntity  queryEntityById(String id);

    /**
     * 新增客户
     *
     * @param enterpriseAddParam 入参
     */
    void add(EnterpriseAddParam enterpriseAddParam);

    /**
     * 编辑客户
     *
     * @param enterpriseEditParam 入参
     */
    void edit(EnterpriseEditParam enterpriseEditParam);

    /**
     * 删除客户
     *
     * @param DeleteIdParamList 入参
     */
    void delete(List<DeleteByIdParam> DeleteIdParamList);

    /**
     * 获取客户分页
     *
     * @param enterprisePageParam 入参
     * @return Page<PmEnterpriseEntity>
     */
    Page<PmEnterpriseEntity> page(EnterprisePageParam enterprisePageParam);
}
